home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
compress
/
shaid220.zip
/
ARCHID.DOC
< prev
next >
Wrap
Text File
|
1997-04-30
|
18KB
|
376 lines
SH Archive Identifier Version 2.20 (c) 1996-1997 SH Software
Documentation
What?
-----
SH Archive Identifier is a small utility, used from the command line
to identify various archive formats.
It relates in a verbal form which kind of archive it deals with and
returns the certain an errorlevel for Dos. It can be used both for
single files when an errorlevel is returned, and for multiple files
(with wildcards) when a certain errorlevel is returned to indicate a
wildcard operation.
Usage
-----
In my own BBS (Reflection) I use this utility to add randomly named
advertisiments into an archive, because the upload checker I use does
not support this feature. Of course, it can be used, for example, to
check viruses inside archivers, etc.
Inside this archive there are two batch files to demonstrate the
function and flexibility of SH Archive Identifier. First, there is
PCBTEST.BAT which may be the base for building BAT files. Secondly,
there is ACVT.BTM (4dos batch file) which may be used to convert ZIP,
ARJ, LHA, JAR, and RKive files between each other.
List of errorlevels and short names
-----------------------------------
The list can also be presented, in a brief form, by ARCHID itself.
"Call" column means a short name for an archive whereby the type is
told to ARCHID if default errorlevels are not desirable to be used -
see "Usages".
────────────────────────────┬─────┬─────────────────────────────────────
Default errorlevel + archive│Call │ Tested / Information
────────────────────────────┼─────┼─────────────────────────────────────
1 - ARJ archive │arj │ ARJ 0.20, 1.10, 2.00, 2.10,
│ │ 2.20, 2.30, 2.50a, 2.55b
2 - ZIP archive │zip │ PKZIP 2.04g, ZIP 2.0
3 - RAR archive │rar │ RAR 1.55, 2.00 beta, 2.00, 2.01
4 - LHA archive │lha │ LHA 2.13, 2.55b
5 - LHarc archive │lharc│ LHA 2.13 with "old method"
6 - UC2 archive │uc2 │ UC r3 pro
7 - GZIP (GNU ZIP) archive │gzip │ GNUZIP 2.1.4
8 - ARC archive │arc │ ARC 6.02
9 - HA archive │ha │ HA 0.999b
10 - Hyper archive │hyp │ HYPER 2.5, 2.6 (German)
11 - PAK archive │pak │ PAK 2.10
12 - PKPAK archive │pkpak│ PKARC 3.5, PKPAK 3.61
13 - SQZ archive │sqz │ SQZ 1.08.3
14 - ZOO archive │zoo │ ZOO 2.1
15 - AIN archive │ain │ AIN 2.2
16 - ARX archive │arx │ ARX 1.0
17 - BSA archive │bsa │ BSA 2.00
18 - ChArc archive │chz │ CHARC 1.2
19 - Codec archive │cdc │ CODEC 3.10
20 - HAP 3 archive │hap │ HAP 3.00, THAP 1.02c
21 - HPack archive │hpk │ HPACK 0.79c0
22 - CrossePAC archive │pac │ CPAC 1.35
23 - JRchive archive │jrc │ JRC 1.10
24 - Limit archive │lim │ LIMIT 1.2
25 - MAR archive │mar │ MAR 1.0
26 - PUT & GET archive │put │ PUT 3.34
27 - SAR archive │sar │ SAR 1.00
28 - SqWez archive │sqw │ SQWEZ 2.2
29 - Quantum archive │paq │ QUANTUM 0.96 beta, 0.97 beta
30 - YAC archive │yac │ YAC 1.02
31 - X1 archive │x1 │ X1 0.94h beta
32 - AMGC archive │amg │ AMGC 2.2
33 - DWC archive │dwc │ DWC A5.01
34 - Larc archive │lrc │ LARC 3.33
35 - LHark archive │lhk │ LHARK 0.3o, 0.4b
36 - FOXSQZ archive │fox │ FOXSQZ 1.6i BETA
37 - MDCD archive │md │ MDCD 1.0
38 - Quark archive │ark │ QUARK 1.0 beta
39 - ACB archive │acb │ ACB 1.13b, 1.23b, 1.29b, 2.00c
40 - RKIVE archive │rkv │ RKIVE 1.0, 1.1, 1.2, 1.3, 1.4
41 - JAR archive │jar │ JAR 1.01 beta_2, 1.01 beta_3
42 - Dirks Pack archive │dpa │ DPA 1.1a
43 - ESP archive │esp │ ESP 1.8, 1.9beta
44 - ARJZ archive │arjz │ ARJZ 0.15 alpha
45 - UFA archive │ufa │ UFA 0.00 (Alpha+Gamma)/2, 0.01
46 - TSComp archive │tsc │ The Stirling Compressor 1.3.21
47 - LEO archive │leo │ PakLEO 1.06
48 - ZAR archive │zar │ Zip-Archiv 2.00
49 - SKY archive │sky │ SKY 1.01, 1.02, 1.03
50 - SOF archive │sof │ RESOF 2.0B
51 - ZPack archive │zpk │ ZPack Lite 1.0
52 - MP3 archive │mp3 │ Power Compressor III
53 - ZET archive │zet │ ZET 0.10 BETA
────────────────────────────┼─────┼─────────────────────────────────────
101 - ARJ SFX executable │arj-x│ ARJ 0.20, 1.10, 2.00, 2.10, 2.20,
│ │ 2.30, 2.50a, 2.55b
102 - ZIP SFX executable │zip-x│ PKZIP 2.04g, InfoZip 5.20
103 - ZIP SFXjr executable │zjr-x│ PKZIP 2.04g
104 - RAR SFX executable │rar-x│ RAR 1.55, 2.00 beta, 2.00, 2.01
105 - LHA SFX executable │lha-x│ LHA 2.13
106 - LHarc SFX executable │lhc-x│ (tested)
107 - ARX SFX executable │arx-x│ ARX 1.00, both COM and EXE
108 - BSA SFX executable │bsa-x│ BSA 2.00
109 - ChArc SFX executable │chz-x│ CHARC 1.2
110 - SqWez SFX executable │sqw-x│ SQWEZ 2.2
111 - SQZ SFX executable │sqz-x│ SQZ 1.08.3
112 - SQZ SFXjr executable │sqj-x│ SQZ 1.08.3
113 - PAK SFX executable │pak-x│ PAK 2.51
114 - LARC SFX executable │lrc-x│ LARC 3.33, both COM and EXE
115 - LHark SFX executable │lhk-x│ LHARK 0.3o, 0.4b
116 - Quark SFX executable │ark-x│ Quark 1.0Beta
117 - ESP SFX executable │esp-x│ ESP 1.8, 1.9beta
118 - AIN SFX executable │ain-x│ AIN 2.32
119 - LEO SFX executable │leo-x│ PLL2EXE 1.05
────────────────────────────┼─────┼─────────────────────────────────────
248 - Wildcards used │ │ If wildcards have been specified,
│ │ none of the above errorlevels will
│ │ be returned but this.
249 - Invalid shortname │ │ Packer's callname, given in
│ │ parameters above 2, is not
│ │ recognized. See "ways to use".
250 - Insufficient memory │ │ There is not enough memory for
│ │ necessary buffer, so memory is 70 kB
│ │ less.
251 - File close error │ │ Should never happen 1-user systems.
│ │ File was deleted from a network?
252 - File read error │ │ Probably too small a file (not a real
│ │ archive or a corrupted one). File
253 - File not found │ │ given as a parameter does not exist.
254 - Help screen │ │ Appears when no parameters are given.
255 - Not recognized │ │ File is neither an archive file nor
│ │ supported by this version.
────────────────────────────┴─────┴─────────────────────────────────────
Ways to use
-----------
ARCHID
without parameters shows the short help: usage, list of
errorlevels, shortnames in 5 letters, and archive types.
Screen automatically pauses if lines exceed the screen or pages
are not redirected anywhere else (e.g. file, printer).
ARCHID <file>
performs file identification: tells the type of an archive and
returns an errorlevel to DOS (listed above).
For example:
C:\>archid test.arj
C:\TEST.ARJ - Recognized as ARJ archive (1).
C:\>archid test.exe
C:\TEST.EXE - Recognized as ARJ SFX executable (101).
C:\>archid test.a*
C:\TEST.ARJ - Recognized as ARJ archive (1).
C:\TEST.A01 - Recognized as ARJ archive (1).
ARCHID <file> <type> [type..]
As far as the is concerned, you should use the 5-letter "call
name" of the packer. This usage corresponds with the usage of
TESTFILE.
For example:
C:\>archid test.arj zip rar lha arj
C:\TEST.ARJ - Recognized as ARJ archive (4).
In other words, errorlevel is the one which corresponds with
the position of the type in the list.
C:\>archid test.exe zip rar lha arj
C:\TEST.EXE - Recognized as ZIP SFX executable (255).
However, by this usage, ARCHID always returns 255 (=not
recognized), even though it might identify the archive in
question, but the type is not listed in the parameters.
Contacts with the author
------------------------
You can send me feedback, bug reports, necessary additions, and
other questions by the following email: "eerheino@lpt.fi"
(notice it has changed since the last version!).
You may also contact me by my BBS system, Reflection, when it opens.
Just drop comment to the SysOp. The latest version may be also
obtained from there by logging in as "Support Download".
Known problems
--------------
Archives created by PKPAK and PAK are often recognized as ARC archives,
if the first file in the archive is compressed by an ARC compatible
method. As far as I know, it will not be easy to get all of this work,
except by going through all files in the archive, but that would slow
down the algorithms quite much. For the extraction and other handling of
those archives I only recommend the use of PAK, because it supports
archives created by both ARC and PKPAK.
This version cannot identify any other SFX files but those created by
archivers themselves; for example, an archive created by ARJX's MAKESFX
is not recognized.
Request to archiver authors
---------------------------
Notification to all archiver authors around the world! When you
release an archiver to the international public (or it is distributed
in internet): remember to include also an English version of the
program, at least English document would be needed. There are too
many archivers that are operating only in German, Russian, Japanese,
or French. As a potential user of the archivers, I have found this
very annoying because I have not teached myself those languages.
Possibly incoming
-----------------
- Enhanced identifying routines
- Speed-ups (optimizations) to code
- Separate, natural OS/2 executable
- TAR and other new or relevant archivers (if you have information
about those archivers, please send me email!)
Obtaining the latest version
----------------------------
As everybody knows, no program is complete. I am continuously updating
this program: fixing bugs, adding formats, and optimizing code.
You can obtain the latest version of SH Archive Identifier via Internet;
with web-browser: "http://ameba.lpt.fi/~eerheino/shs/shaid.htm"
or via ftp: "ftp.simtel.net/pub/simtelnet/msdos/arcutils/shaid*.zip".
Use your nearest Simtel.Net mirror for maximum speed!
If you are not in Internet, it may also be obtained from Reflection PCB
by logging in as "Support Download". About Reflection, refer to section
"Contacts with the author".
Copyrights
----------
Other products mentioned in this document or the actual program:
ACB, Associative Coder (c) George Buyanovsky
AIN (c) Transas Marine (UK) Ltd
AMGC (c) Milen Georgiev
ARC (c) SEA (System Enhancement Associates)
ARCID,
Archive Identifier (c) Stacy Smith
Archive Comparison Test(c) Jeff Gilchrist
ARI (c) RAO Inc
ARJ, ARJSFX, JAR (c) ARJ Software, Robert K Jung
ARJX (c) ROSE, Ralph Roth
ARX (c) Michael A. Kosior
BSA (c) PTS Ltd
ChArc (I cannot read, probably Japanese)
Codec (c) Telvox Teleinformatica
CrossePAC (c) Digital Strategies
Dirks Packer, DPA (c) Dirk Paehl
DWC (c) Dean W. Cooper
ESP (c) GyikSoft
File Format List (c) Max Maischein
FOXSQZ (c) Master Creative Software, Inc.
GZIP, GNU ZIP Part of the UN*X GNU project
HA (c) Harri Hirvola
HAP (c) Harald Feldman
HPack (c) Peter Gutmann
Hyper (c) P Sawatzki & K P Nischke
Info-Zip, ZIP (c) Mark Adler, Richard B. Wales,
Jean-loup Gailly, Kai Uwe Rommel
JRchive, JRC (c) Jayar Systems
Larc (c) K. Miki, H. Okumura, K. Masuyama
PakLEO, UnpakLEO,
PLL2EXE (c) ThunderSoft, Leonardus Leonardi
LHA, LHarc, LHA SFX (c) Haruasy Yoshizaki
LHark (c) Kerwin F. Medina
Limit (c) J Y Lim
MAR (c) Haruhiko Okumura, Richard Schiller
MDCD (Public Domain) Mike Davenport
OS/2 (R) IBM (International Business Machines)
PAK (c) NoGate Consulting
PKZIP (R), PKSFX,
PKSFXjr, PKPAK (c) PKWare Inc
Power Compressor III (c) Marco Czudej
PUT & GET (c) Microfox Company
Quantum, PAQ (c) CinemaTronics
Quark (c) Kunz Robert
RAR (c) Eugene Roshal
RESOF, DESOF (c) Spectrum Software
RKive (c) Malcolm Taylor
SAR (c) Streamline Design
SH Archive Identier (c) SH Software, Eero T Heinonen
SKY (c) SkyTech
RESOF / DESOF (c) Spectrum Software
SqWez (c) JM Software
SQZ (c) J I Hammarberg
The Stirling Compressor(c) Striling Group
TAR (c) Tim V. Shaporev
UC II (c) Ad Infinitum Programs
UFA (c) Igor Pavlov
X1 (c) Stig Valentini
YAC (c) Aleksandras Surna
ZET (R) (c) Oleg V Zaimkin
Zip-Archiv (ZAR) (c) Troxler Peter
ZOO, ZOO SFX (c) Rahul Dhesi
ZPack Lite (c) SpeedSoft
Thanks to
---------
Many thanks to Timo Muhonen and Jari Arkoma, the testers of this
version, as well as Heimo Heinonen, the proof-reader of the English
version of the document.
Also I want to thank for valuable user feedback: George Shadoff
(new archivers), Raul Gutierrez (good suggestions [incl. wildcard
support] and ideas), and Al Hall (reporting the file_id.diz problem).
I am also grateful to the maker of the Archive Comparison Test,
Jeff Gilchrist, and to those WWW and FTP servers I have used to
download the programs (mainly Stuba).
Version history
---------------
2.20 (30 April 1997)
- The following formats have been added:
ARJZ, UFA, TSComp, LEO, ZAR, SKY, SOF, ZPack Lite, MP3, ZET
- Added: AIN 2.32 SFX format
(previous version 2.20 had no SFX feature)
- Fixed: false recognition of RKive archives
- Fixed: now recognizes older ARJ SFX files than v2.20
(tested on 0.20, 1.10, 2.00, 2.10)
- Fixed: removed special characters from file_id.diz
(this caused problems in TriBBS systems)
- Fixed: /S (delete largest) option in ACVT.BTM
2.10 (10 February 1997)
- The following formats have been added:
ACB, RKive, JAR, ESP (+SFX), DPA
- Strenghtened recognition of PKZIP
- Added some more errorchecks
- A little bit faster
- Fixed: did not recognize big DWC archives
- Fixed: crashed on smaller executables than 30KB
- Removed "new" ARJ SFX specification (unnecessary)
2.00 (05 November 1996)
- In addition to normal usage (default errorlevels, 1 parameter)
the program can now be used like TESTFILE or Stacy Smith's
ARCID: "archid %1 arj zip lha rar .."
- The following formats (and possible SFXs) have been added:
AIN, AMGC, ARX, BSA, ChArc, Codec3, CrossePAC, DWC,
FOXSQZ, HAP3, Hpack, JRchive, Larc, LHark, Limit, Mar,
MDCD, Quantum, Quark, SqWez, YAC, X1
- All old & new formats have now been tested!
- Re-numbered errorlevels, normal archives correspond with the
value of 100 and below
- According to File Format List 1.50, an added a support for:
- Newer ARJ SFX's
- Older LHA SFX versions (<2.13): LHarc 1.xx, LHA 2.10
- Fixed identifying routine for the following archive types:
LHA, ZOO, GZIP
- Enhanced PKSFX identifying (also InfoZip)
- Differentiates between LHA, LHarc and SFX's of them
- Differentiates between LHarc and ARX file types
- Differentiates between LHA and LHark file types
- Differentiates between PKPAK and ARC files (special method)
- Fixed a bug in ARC/PAK files: some PAK files were identified
as ARC files.
- Optimized the old part of the source code
- Additional errorlevels 249 and 250
- Enhanced help page: it's a 2-column list with clear topics,
a screen pause and a monitor of redirection.
Formerly it was a single column non-stopping list.
- Shows the errorlevels (also error codes) in brackets.
- Shows messages "open error", "close error"
1.00 (30 June 1996)
- First public version 1.00
- Some old and uncommon formats have been added (NOT TESTED):
ARC, GZIP, HA, HYP, PAK, SQZ, ZOO
- Assured LHA identification